package com.example.sports_meet.volunteer;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

import com.example.sports_meet.R;
import com.example.sports_meet.volunteer.Volunteer_changeMessage;
import com.example.sports_meet.volunteer.Volunteer_deleteMessage;
import com.example.sports_meet.volunteer.Volunteer_insertMessage;
import com.example.sports_meet.volunteer.Volunteer_selectMessage;

import java.util.Objects;

public class Volunteer_mainActivity extends AppCompatActivity {

    private ImageButton btnIn,btnDe,btnCh,btnSe;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_volunteer_main);
        btnIn= (ImageButton) findViewById(R.id.btnin);
        btnDe=(ImageButton) findViewById(R.id.btnde);
        btnCh=(ImageButton) findViewById(R.id.btnch);
        btnSe=(ImageButton) findViewById(R.id.btnse);
        Objects.requireNonNull(getSupportActionBar()).hide();
        btnIn.setOnClickListener(new View.OnClickListener(){

            @Override
            public void onClick(View view) {
                Intent intent=new Intent(Volunteer_mainActivity.this, Volunteer_insertMessage.class);
                startActivity(intent);
            }
        });
        btnDe.setOnClickListener(new View.OnClickListener(){

            @Override
            public void onClick(View view) {
                Intent intent=new Intent(Volunteer_mainActivity.this, Volunteer_deleteMessage.class);
                startActivity(intent);
            }
        });
        btnCh.setOnClickListener(new View.OnClickListener(){

            @Override
            public void onClick(View view) {

                Intent intent=new Intent(Volunteer_mainActivity.this, Volunteer_changeMessage.class);
                startActivity(intent);
            }
        });
        btnSe.setOnClickListener(new View.OnClickListener(){

            @Override
            public void onClick(View view) {

                Intent intent=new Intent(Volunteer_mainActivity.this, Volunteer_selectMessage.class);
                startActivity(intent);
            }
        });
    }
}